package org.dk.service.impl;

import org.dk.mapper.TbGoodsDescMapper;
import org.dk.pojo.TbGoodsDesc;
import org.dk.service.GoodsDescService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
@com.alibaba.dubbo.config.annotation.Service
public class GoodsDescServiceImpl implements GoodsDescService {

    @Autowired
    private TbGoodsDescMapper tbGoodsDescMapper;
    @Override
    public void addGoods(TbGoodsDesc goodsDesc) {
        tbGoodsDescMapper.insertSelective(goodsDesc);
    }

    @Override
    public TbGoodsDesc selectGoodsDesc(Long id) {
        return tbGoodsDescMapper.selectByPrimaryKey(id);
    }
}
